import type {Ref} from "vue";
// @ts-ignore
import type {IStepProps} from "@/components/Step/index.vue";
// @ts-ignore
import type {ItemProps} from "@/components/Step/item.vue";


export interface Item extends ItemProps{
  id: number
}

export interface StepContext{
  props: IStepProps
  currentIndex: Ref<number>
  itemList: Ref<Item[]>
  fnRegisterItem: (item:ItemProps) => number
  fnUnRegisterItem: (id: number) => void
  fnLastStep: () => void
  fnNextStep: () => void
  fnFinish: () => void
}